package giaodien;

import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class MyButton extends JButton{

	public MyButton() {
		Font font=new Font("vni-times", Font.BOLD, 13);
		setFont(font);
		setSize(20, 20);
	}
	public MyButton(String text,String text1){
		setText(text);
		Font font=new Font("vni-times", Font.BOLD,13);
		setFont(font);
		setSize(20, 10);
		this.setIcon(new ImageIcon("image/"+text1+""));
	}
	public MyButton(String text){
		setText(text);
		Font font=new Font("vni-times", Font.BOLD,13);
		setFont(font);
		setSize(20, 10);
	}
}
